package com.jt.www.model.vo.endorse;

//import jtpf.pol.svc.entity.file.FileInfo;

import javax.xml.bind.annotation.*;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * @Author: cjw
 * @Description: 标的对象
 * @Date: 19:54 2018/6/6
 */
@XmlRootElement(name = "Holder")
@XmlAccessorType(XmlAccessType.FIELD)
public class ContextInsuranceObject implements Serializable {

    /**
     * 标的编码
     */
    @XmlElement(name = "Code")
    private String code = "";
    /**
     * 标的名称
     */
    @XmlElement(name = "ObjectName")
    private String objectName = "";

    /**
     * 标的类型
     */
    @XmlElement(name = "Type")
    private String type = "";

    /**
     * 标的名称
     */
    @XmlElement(name = "Name")
    private String name = "";

    /**
     * 标的开始日期
     */
    @XmlElement(name = "StartDate")
    private Date startDate;

    /**
     * 标的结束日期
     */
    @XmlElement(name = "EndDate")
    private Date endDate;

    /**
     * 标的顺序
     */
    @XmlElement(name = "No")
    private Integer no = 1;

    /**
     * 扩展信息
     */
    @XmlElement(name = "ExtendList")
    private List<ContextExtend> extendList = new ArrayList<ContextExtend>();

    /**
     * 附件列表
     */
    @XmlElementWrapper(name = "Attachments")
    @XmlElement(name = "Attachment")
    private List<ContextAttachment> attachments = new ArrayList<ContextAttachment>();

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public Date getStartDate() {
        return startDate;
    }

    public void setStartDate(Date startDate) {
        this.startDate = startDate;
    }

    public Date getEndDate() {
        return endDate;
    }

    public void setEndDate(Date endDate) {
        this.endDate = endDate;
    }

    public Integer getNo() {
        return no;
    }

    public void setNo(Integer no) {
        this.no = no;
    }

    public List<ContextExtend> getExtendList() {
        return extendList;
    }

    public void setExtendList(List<ContextExtend> extendList) {
        this.extendList = extendList;
    }

    public List<ContextAttachment> getAttachments() {
        return attachments;
    }

    public void setAttachments(List<ContextAttachment> attachments) {
        this.attachments = attachments;
    }

    public String getObjectName() {
        return objectName;
    }

    public void setObjectName(String objectName) {
        this.objectName = objectName;
    }

    @Override
    public String toString() {
        return "ContextInsuranceObject{" +
                "code='" + code + '\'' +
                ", objectName='" + objectName + '\'' +
                ", type='" + type + '\'' +
                ", name='" + name + '\'' +
                ", startDate=" + startDate +
                ", endDate=" + endDate +
                ", no=" + no +
                ", extendList=" + extendList +
                ", attachments=" + attachments +
                '}';
    }
}
